<!-- search area   -->
<div class="row searchLineWrap">
	<form class="form-horizontal" method="post"
		action="${cxt!}/cms/articleCatalog/list" id="searchForm">
		<div class="col-md-12">
			<div class="row">
				<div class="col-md-3">
					<div class="form-group">
						<label class="col-md-5 control-label">${_res["articleCatalog.classificationName"]}</label>
						<div class="col-md-7">
							<input type="text" class="form-control" name="articleCatalog.l_name" placeholder="${_res['articleCatalog.classificationName']}"	value="${paramMap['articleCatalog.l_name']}" />
						</div>
					</div>
				</div>
				
				<div class="col-md-3">
					<div class="form-group">
						<label class="col-md-5 control-label">${_res["articleCatalog.superiorClassification"]}</label>
						<div class="col-md-7">
							<input type="text" class="form-control" id="partentMenuName" name="articleCatalogname" placeholder="${_res['articleCatalog.superiorClassification']}" data-toggle="modal" data-target="#myModal" value="${paramMap['articleCatalogname']}"/> 
							<input type="hidden" name="articleCatalog.f_parentid" id="parentMenuId" placeholder="${_res['articleCatalog.superiorClassification']}" value="${paramMap['articleCatalog.f_parentid']}"/>
						</div>
					</div>
				</div>

				<div class="col-md-3">
					<div class="form-group">
						<label class="col-md-5 control-label">${_res["articleCatalog.status"]}</label>
						<div class="col-md-7">
							<#dict type="select" name="articleCatalog.f_status" dictCode="COMMON_STATUS" value="${paramMap['articleCatalog.f_status']}"/>
						</div>
					</div>
				</div>

				<div class="col-md-2">
					<div class="form-group">
						<% if(hasPrivilegeUrl("articleCatalogList")){ %>
							<button type="button" class="btn btn-primary pull-right" onclick="ajaxForm('content','searchForm')">
							<i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}
						</button>
						<% } %>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>
<!-- search area end  -->

<div class="row searchLineWrap">
	<% if(hasPrivilegeUrl("articleCatalogAdd")){ %>
	<p>
		<a href="javascript:void(0);" onClick="ajaxContent('/cms/articleCatalog/add/a');" class="btn btn-primary pull-left">${_res["articleCatalog.add"]}</a>
		<div class="clearfix"></div>
	</p>
	<% } %>
	<table class="table table-bordered">
		<thead>
			<tr>
				<th>${_res["articleCatalog.classificationName"]}</th>
				<th>${_res["articleCatalog.superiorClassification"]}</th>
				<th>${_res["articleCatalog.status"]}</th>
				<th>${_res["system.createtime"]}</th>
				<th>${_res["system.lastUpdateTime"]}</th>
				<th>${_res["system.operator"]}</th>
			</tr>
		</thead>
		<tbody>
			<% for(articleCatalog in splitPage.list){ %>
			<tr >
				<td>${articleCatalog.name!}</td>
				<td>
					<% if (0 == articleCatalog.parentid) { %>
						${_res["articleCatalog.rootMenu"]}	
					<% } else { %>
						<#dict type="lable" value='${articleCatalog.parentid!}' table="cms_article_catalog" filedName="name" filedValue="id" />
					<% } %>
				</td>
				
				<td><#dict type="lable" value='${articleCatalog.status!}' dictCode="COMMON_STATUS"/></td>
				<td>${articleCatalog.createtime!,dateFormat="yyyy-MM-dd HH:mm"}</td>
				<td>${articleCatalog.updatetime!,dateFormat="yyyy-MM-dd HH:mm"}</td>
				<td>
					<% if(hasPrivilegeUrl("articleCatalogView")){ %>
					<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/cms/articleCatalog/view/${articleCatalog.id!}');">${_res["system.view"]}</button>
					<% } %> 
					<% if(hasPrivilegeUrl("articleCatalogEdit")){ %>
					<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/cms/articleCatalog/update/e-${articleCatalog.id!}')">${_res["system.edit"]}</button>
					<% } %>
					<% if(hasPrivilegeUrl("articleCatalogDelete")){ %>
					<button type="button" class="btn btn-sm btn-link" data-trigger="confirm" onClick="ajaxDelete('/cms/articleCatalog/delete/${articleCatalog.id!}')">${_res["system.delete"]}</button>
					<% } %>
				</td>
			</tr>
			<% } %>
		</tbody>
	</table>
	<div id="splitPageDiv"><#page formId="searchForm" /></div>
	<#nav />
</div>

<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
	aria-labelledby="myModaLabel">
	<%include("selectPartentNode.html"){}%></div>

<script>
	$(document).ready(function() {
		//增加模拟框拖动效果
		$(".modal").draggable({
			handle : ".modal-header"
		});
	});
</script>